package com.cp.service;

import com.cp.repository.AdjudgmentWord;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "adjudgmentWordCache")
public interface AdjudgmentWordService {

	@Cacheable
	List<AdjudgmentWord> getByRelationWordByConvictionIdAndClassRelationIds(Integer convictionId, String classRelationList);

	@Cacheable
	List<AdjudgmentWord> getByConvictionIdAndClassRelationId(Integer convictionId, Integer classRelationId);
}
